import {defineStore} from 'pinia'

const useCounterStore = defineStore("counter",{
    state: () =>({
        counter: 100
    }),
    getters :{
        doubleCouter(state){
            return state.counter * 2
        }
    },
    actions:{
        changeCouterAction(newCounter: any){
            this.counter = newCounter
        }
    }
})

export default useCounterStore